#include <stdio.h>
#include <Windows.h>

int main()
{
	DWORD start = GetTickCount();
	freopen("test.in", "r", stdin);
	freopen("test.out", "w", stdout);
	for (int egg = 0; egg <= 100/6; egg++ ) {
		int left = 100 - egg * 6;
		if ( left % 5 == 0 ) {
			int fish = 	left / 5;
			printf("%d %d\n", egg, fish);
		}
	}
	DWORD time = GetTickCount() - start;
	printf("\ntime = %.2f\n", (1000.0 * time) / 905 );
	fclose(stdin);
	fclose(stdout);
	return 0;
}
